package com.example.snashuitraverl.demos.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RabbitListener(queues = "fanout_test_queue")
public class FanoutEmailConsumer {
    @RabbitHandler
    public void process(String a){
        log.info("接收用户下单成功"+a);
    }

}
